const app = getApp()

Component({
  options: {
    multipleSlots: true
  },
  data: {
    statusHeight: 20,
  },
  properties: {
    title: {
      type: String,
      value: '默认标题'
    }
  },
  lifetimes: {
    attached() {
      this.setData({statusHeight: app.globalData.statusHeight})
    }
  },
  methods: {
    onBackTap() {
      this.triggerEvent('onBackLeft')
    }
  }
})
